package com.java0107;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Java08 {
    public static void main(String[] args) throws IOException {
        //(8)输出,写
        FileWriter fileWriter = new FileWriter("d:/person2.txt",true);//false 覆盖原文件

        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);

        for(int i=0;i<10;i++){
            bufferedWriter.write("你好");
        }

        bufferedWriter.close();
        fileWriter.close();



    }
}
